/*******************************************************************************
 * Copyright (c) 2008 Sylvain Sicard.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Sylvain Sicard - initial API and implementation
 ******************************************************************************/
package fr.jade.examples.fraclite.statecontrol;

import fr.jade.fraclite.api.ComponentState;

public class ServerImplV1 implements Service {

  @ComponentState
  private String header = "";

  @ComponentState
  private int count = 0;

  // Service
  public void print (final String msg) {
    System.out.println("Server V1 ["+ count++ +"]");
    System.out.println(header + msg);
      
  }

  public void setHeader(String header) {
    this.header = header;
  }

}
